from django.contrib import admin
from .models import Award # 同一目录下，还需用.么
# Register your models here.

class AwardAdmin(admin.ModelAdmin): # 继承admin.ModelAdmin
    list_display = ['description','photo'] # 将需要编辑的模型字段添加进来
# 下方的Award是models中的类
admin.site.register(Award,AwardAdmin) # admin.site.register()函数将Award和AwardAdmin绑定并实现注册


# 修改管理系统名称
admin.site.site_header = 'xinbancan的Django后台管理'
admin.site.site_title = 'xinbancan登录'